package com.mofang.ticketing.user.serve.account.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author LGC
 * @date 2022/5/19 20:01
 */
@Data
@ApiModel(value = "账号新增")
public class MerchantAccountAddReqDTO implements Serializable {
    private static final long serialVersionUID = -1270879140086081514L;

    @NotBlank(message = "用户名称不能为空")
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotNull(message = "角色不能为空")
    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @NotNull(message = "商户不能为空")
    @ApiModelProperty(value = "商户ID")
    private Long merchantId;
}
